-- GENERATED SPELL FOR [Young Diemetradon] --


function spell0_9162(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9162', 8000, 1)
end

function Sorts_9162(pUnit, Event)
local choix_sorts_9162 = math.random(0, 0)
if choix_sorts_9162 == 0 then
pUnit:RegisterEvent('spell0_9162', 1, 1)
end
end

function mob9162_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9162', math.random(1500, 3000), 1)
end

function mob9162_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9162_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9162_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9162, 1, 'mob9162_Action')
RegisterUnitEvent(9162, 2, 'mob9162_Leave')
RegisterUnitEvent(9162, 3, 'mob9162_Kill')
RegisterUnitEvent(9162, 4, 'mob9162_Die')
